<template>
	<textarea class="textarea" :value="modelValue" placeholder="复制微信消息,系统自动识别" focus  @input="onInput" maxlength="-1"/>
</template>
<script setup>
	defineProps({
		modelValue: {
			type: String,
			require: true
		}
	})
	const emits = defineEmits(['update:modelValue'])
	const onInput = e => {
		emits('update:modelValue',e.target.value)
	}
	
</script>
<style lang="scss" scoped>
	.textarea {
		width: 100%;
		margin-bottom: 20rpx;
		padding: 15rpx;
	}
</style>